/**
 * Record after-delete trigger.
 *
 * @param {JSRecord<db:/pigeon_board/adm_t900_empresas>} record record that is deleted
 *
 * @properties={typeid:24,uuid:"1F12ADEF-F635-4B7D-A8F4-BAB709405230"}
 */
function afterRecordDelete(record) {

	// Borramos registros históricos
	var bok = false;
	
	bok = record.adm_t900_empresas_to_adm_t900_perfiles.deleteAllRecords();
	if (bok == false){
		application.output("No se ha podido borrar el histórico adm_t900_empresas_to_adm_t900_perfiles", LOGGINGLEVEL.DEBUG);
		return false;
	}
	
	return true;
}
